// app.js
App({
  onLaunch() {
    // 展示本地存储能力
    const logs = wx.getStorageSync('logs') || []
    logs.unshift(Date.now())
    wx.setStorageSync('logs', logs)

    // 登录
    wx.login({
      success: res => {
        // 发送 res.code 到后台换取 openId, sessionKey, unionId
      }
    })
  },
  globalData: {
    hotList:[
      {
        title:'高中语文热门课程',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/8.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/4.%E9%A9%AC%E8%80%81%E5%B8%88%E8%A1%A5%E5%85%85%E8%AF%BE---%E5%9B%9B%E7%82%B9%E7%AD%94%E9%A2%98%E6%B3%95%E4%B8%93%E9%A1%B9%E8%AE%AD%E7%BB%83.mp4'
      },
      {
        title:'高中数学热门课程',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/7.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/24%E5%9C%86%E9%94%A5%E6%9B%B2%E7%BA%BF%E5%B0%8F%E9%A2%98-%E7%8E%8B%E4%BC%9F~1.mp4'
      },
      {
        title:'高中英语完形热门课程',
        img:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/9.png',
        video:'https://ry-01.oss-cn-hangzhou.aliyuncs.com/bishe/%E5%AE%8C%E5%9E%8B%E5%A1%AB%E7%A9%BA1-.mp4'
      },
      // {
      //   title:'【TED】Airbnb是如何建立信任的？',
      //   img:'https://nimg.ws.126.net/?url=http://open-image.ws.126.net/c01da1c1cbf34bfe80a1249bb4dbba66.png&thumbnail=860x483&quality=95&type=jpg',
      //   video:'https://mov.bn.netease.com/open-movie/nos/mp4/2021/05/07/SG8F56967_shd.mp4'
      // },
      // {
      //   title:'【TED】网络暴力的失控',
      //   img:'https://nimg.ws.126.net/?url=http://open-image.ws.126.net/a3413e7dee6d4e3eb9b292e14b07893b.jpg&thumbnail=860x483&quality=95&type=jpg',
      //   video:'https://mov.bn.netease.com/open-movie/nos/mp4/2015/09/16/SB2N4R35N_sd.mp4'
      // },
      // {
      //   title:'【TEDx】做一个像样的人，不难。',
      //   img:'https://nimg.ws.126.net/?url=http://open-image.ws.126.net/image/snapshot_movie/2017/6/2/T/MCLSD732T.jpg&thumbnail=860x483&quality=95&type=jpg',
      //   video:'https://mov.bn.netease.com/open-movie/nos/mp4/2017/06/13/SCLSCU6AF_shd.mp4'
      // },
    ]
  }
})
